package com.project.entity.db;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(description = "表创建请求")
public class TableCreationRequest {
    @ApiModelProperty(value = "数据库url", required = true)
    private String url;

    @ApiModelProperty(value = "用户名", required = true)
    private String username;

    @ApiModelProperty(value = "密码", required = true)
    private String password;

    @ApiModelProperty(value = "表名", required = true)
    private String tableName;

    @ApiModelProperty(value = "列信息", required = true)
    private List<Col> columns;

    @ApiModelProperty(value = "主键")
    private String primaryKey;

    @ApiModelProperty(value = "外键")
    private String foreignKey;

    @ApiModelProperty(value = "约束条件")
    private String constraints;

    @ApiModelProperty(value = "约束条件")
    private String databaseName;
    // 省略构造函数和getter/setter方法
}